2ad65f
@@ -70,6 +70,6 @@
public static boolean needsInBatching(DatabaseProduct dbType) {
    * Whether the RDBMS has a bug in join and filter operation order described in DERBY-6358.
    */
   public static boolean hasJoinOperationOrderBug(DatabaseProduct dbType) {
-    return dbType == DERBY || dbType == ORACLE;
+    return dbType == DERBY || dbType == ORACLE || dbType == POSTGRES;
   }
 }
